%MY_LAPLACEEDGE Summary of this function goes here
% We tried the Laplace method with three different standard kernels. The
% one that showed best results is the one highlighted here:
% kernel = [-1 -1 -1; -1 8 -1; -1 -1 -1];
% Since this is a simple Laplace operator application, we did not calculate
% the zero crossings.
function [ G ] = my_laplaceEdge( img )

% Following the suggest kernel on class slides
%kernel = [0 1 0; 1 -4 1; 0 1 0];
%kernel = [0 -1 0; -1 4 -1; 0 -1 0];
kernel = [-1 -1 -1; -1 8 -1; -1 -1 -1];

% Apply the kernel to the image
G = conv2(img, kernel);

end

